Georgified lock.c