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

Closes #17773.
Could you rename these so the lint allows aren't needed?