Update lock.c