gh-143121: Avoid thread leak in configure (gh-143122) If you are building with `--with-thread-sanitizer` and don't use the suppression file, then running configure will report a thread leak. Call `pthread_join()` to avoid the thread leak.