ci: Add release flavour and use it for the jobs
The release flavour is essentially the same as the perf flavour
currently but also enables `-haddock`. I have hopefully updated all the
relevant places where the `-perf` flavour was hardcoded.
Also fixes the centos nightly/release build.
Closes #21580 (closed).