Fix set_cpu_flags invocations in ENV.fortran

Fixes #19013.
Fixes #19862.
Fixes #19921.