[Git][ghc/ghc][wip/spj-apporv-Oct24] 4 commits: RTS: rely less on Hadrian for flag setting (#25843)