单项选择题

All the afternoon he worked in his room with the door ______.

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