Move registry interop to shared CoreLib partition (#19886)