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

Closes #17773.
Is this still needed? It looks like some of the flags were also changed.