[sanitizer_common] Wait for the tracer with CLONE_CHILD_CLEARTID (#248327)
StopTheWorld() spins until the tracer thread sets a flag. If seccomp
kills the tracer on ptrace, the flag is never set and the leak check
hangs (#150380). #151406 added a fork to the first leak check to warn
about that, but the fork is expensive and the process still hangs.
Wait instead on a word that the kernel clears when the tracer exits for
any reason. The leak check now fails with an error instead of hanging,
and the fork is not needed.
Alternative to #248249.
Assisted-by: Gemini