1.0.48.10: add deadlock detection to spinlocks and mutexes