tsan: deadlock detector: add ability to ignore destruction of global mutexes