单项选择题

In order not to be disturbed, I spent three hours ______ in my study.

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