[PATCH v6 1/2] selftests/resctrl: Fix schemata write error check