[metacling] Use dl_iterate_phdr() to collect shlibs, fixes #6797:
[metacling] Use dl_iterate_phdr() to collect shlibs, fixes #6797:

Walking the dyld map manually is missing the libc lock. Instead, use the
official interface for this. Make sure that any call to UpdateListOfLoadedSharedLibraries
is actually locked by gInterpreterMutex.

olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,olifre/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root