B. locking
Feedback Some verbs can be used both with the Gerund and the Infinitive. But in some cases the meaning of the sentence becomes different. Compare: forgot to lock - forgot that she needed to lock / forgot locking - she locked the door but she forgot that fact.