[RuntimeDyld] Fix performance problem in resolveRelocations with many sections