[Git][ghc/ghc][master] RTS: rely less on Hadrian for flag setting (#25843)