Update locks.c