[sanitizer] add one more test for deadlock detection stuff

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201503 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] simplify DeadlockDetectorTLS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201505 91177308-0d34-0410-b5e6-96231b3b80d8
[compiler-rt] Fix CompilerTargetTriple for non-English locales.

When the locale of a shell is set other than English locales or the C locale,
The word 'Target' may be translated. Thus, with e.g. ja_JP locale, compiler-rt
couldn't be built properly. Forcing LANG=C fixes the problem.

Patch by Ogino Masanori.


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