[PATCH 13/24] selftests/resctrl: Convert perf related globals to locals