[PATCH openEuler-5.10 160/427] selftests/resctrl: Fix null pointer dereference on open failed