Create lock.c