Modified lock.h to include new function prototypes.