[Sanitizer tests] Make simple pthread tests compile and pass on Windows

Reviewed at http://reviews.llvm.org/D3725