[compiler-rt][TSan] fix crash caused by intercpting pthread_detach on Android (#161596)
In Bionic, pthread_detach calls pthread_join, so the thread has already
been consumed by the pthread_detach interceptor.
https://android.googlesource.com/platform/bionic/+/refs/heads/android16-release/libc/bionic/pthread_detach.cpp