Simplify the implementation of recursive locks
Oops, forgot to add queue_lock.h