This patch adds tracking which modules are instrumented and which are not. On macOS, instrumented modules link against the ASan/TSan/... dylib, so we can just check if such a load command exists or not.
This is needed to implement a feature that needs to know if an interceptor is called from instrumented code or not (then it's likely a system library). The patch for that will follow.