lock t returns a deferred that is fulfilled when the caller has acquired the mutex.
lock t
If the caller already holds the mutex, the deferred is never fulfilled. *