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