单项选择题

I remember ______ the door before I went to bed.

A.locking
B.to lock
C.to have locked
D.being locked