lock

noun A2
/lɒk/

a device that keeps something such as a door, container, or gate fastened and can only be opened with a key or a code

“I forgot to lock the door, so the lock was useless.”

fastener bolt
qulf