Avoid using DynFlags in GHC.Linker.Unit (#17957)
This patch removes GHC.Linker.Unit
's dependence on DynFlags.
This is a very small step towards refactoring the linker code to make it easier to integrate the changes needed for the JavaScript linker.