asan_memory_profile: Fix for deadlock in memory profiler code.
Wrapping stopTheWorld in dl_iterate_phdr acquire dl_load lock before
calling the function. Acquiring dl_load, allocator and thread registry
locks before calling stopTheWorld ensures no other threads are holding
that locks, we can safely suspend them and reenter in tracer thread.
LockStuffAndStopTheWorld's logic here is same as lsan's implementation
of this function.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D146990