[PATCH v3 2/5] selftests/resctrl: Add helpers for the non-contiguous test