Updated lock.h to ticketlocks
Merged with branch, working on ticketlocks but there seems to be a stack bug in lock.c