[Sanitizer tests] Fix most of the build problems on Windows

E.g. use the pthread helpers introduced in r208674

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208692 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable fopen64 interceptor on osx.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208693 91177308-0d34-0410-b5e6-96231b3b80d8