[PATCH] x86/resctrl: Prevent possible overrun during bitmap operations