[TSan] Build TSan unit tests with the same compile flags as TSan runtime