fix typo in lib/lock.c (fixes compilation on Darwin)