[PATCH 1/4] selftests/sgx: Fix segfault upon early test failure