[libsanitizer] Fixed incorrect handling of pre-existing threads in ThreadLister test.
Also, extended the test to check that ThreadLister::Reset() works as intended.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177060 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] remove -fsanitize=init-order from lit tests as now it's implied by -fsanitize=address

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177064 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Intercept readdir64.


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