[Git][ghc/ghc][master] hadrian/rts: fix unregisterised build for gcc 15+