Update locks.c

How dumb i am?