Improve robustness of remote module/exports enumeration

Reading from memory while enumerating ranges may interfere with the
enumeration. Make a copy of ranges first, and reduce I/O strain by only
reading the beginning of each page to look for Mach-O magic.