Add missing include to locks.c