[PATCH v5 2/5] selftests/resctrl: Add a helper for the non-contiguous test