Would do you define “locking”?

A: Just closing the door and relying on thr closing snapper (resulting in pulling on the door being unable able to open it)
B: Turning the key