This MR main goal is to implement properly dbghelp's SymRefreshModuleList.
It also includes potential fixes for some spurious failures in dbghelp tests on Windows 11 (to be verified).
It also tidies up the loader detection (ELF and Mach-O should now behave in the same way).