Lock puzzles have a long history. Chinese jewelry boxes often contain trick-locks and hidden drawers. An example of such a box is an integral part of the plot of the movie Shanghai Knights.
Other lock puzzles stem from the necessity to invent secure locks in the Middle Ages.
see also: Puzzles