The mechanism of an ancient Egyptian lock