[PATCH 4.14 163/210] powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue