[Git][ghc/ghc][wip/hadrian-persistent-flavour] hadrian: Persist the used flavour name in the build root (#20650)