[PATCH v5 1/3] selftests/resctrl: Add cleanup function to test framework