fed81c2cfc
Assert that locks are not reentered on the same thread, unlocked by a different thread, or deleted while locked.