[PATCH 5.16 0359/1039] x86/mce/inject: Avoid out-of-bounds write when setting flags