单项选择题

He said that he remembered ______ the door when he came out.

A. to lock
B. locking

C. locked