NetHack 3.1.0/lock.c