Added simple TicketLock while doing another round of experimenting with the low level locking primitives.