Remove the #[allow(non_uppercase_statics)] attribute from inside bitflags!

Closes #17773.
@P1start would you be up for the renamings as part of this PR? This could always happen as a follow-up, of course!