tsan: fix tests
failure:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5/builds/3747/steps/test/logs/stdio



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