[PATCH v4 20/29] selftests/resctrl: Replace file write with volatile variable