[Sanitizer] Get rid of global mutexes in StopTheWorld implementation