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

Closes #17773.
To ease the migration path, could you keep the old statics, but mark them as `#[deprecated]`? Other than that this looks great to me!