Extracted from https://reviews.llvm.org/D44892
Previously JIT notifiers were called before relocations were
performed (leading to ominious looking function calls of "0" being
shown in debugger / profiles), and before memory marked
executable (confusing some profilers).
Move notifications to finalizeLoadedModules().