Locks for doors grates and chests