[PATCH 5/6] selftests/sgx: retry the ioctls returned with EAGAIN