[Orc] Refactor JITCompileCallbackManagerBase and CompileOnDemandLayer to support