[PATCH 6.11 202/817] selftests/resctrl: Fix memory overflow due to unhandled wraparound