[TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta Suzuki