单项选择题

He didn't want to see anybody, so he spent six hours ______ in the small room.

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