rts: Avoid static dependencies on ghc-internal
This is the first step towards resolving #26166 (closed), a bug due to new constraints placed by Apple's linker on undefined references.
One source of such references in the RTS is the many symbols referenced in ghc-internal. To mitigate #26166 (closed), we make these references dynamic, as described in Note [RTS/ghc-internal interface].
Edited by Ben Gamari