I'm not sure how a spinlock solves this problem. Wouldn't that just cause the process to hang busy?
Only until the other thread leaves the logger
Oh, I see: the spinlock is for logging the deadlocks of other mutices, not for magically remediating deadlocks.