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