safety lock

noun

1.
guard consisting of a locking device that prevents a weapon from being fired
2.
a bolt that cannot be moved from outside the door or gate