Fixing a problem with iterator validity in RuntimeDyldImpl::resolveExternalSymbols