[PATCH OLK-5.10 V2 35/44] selftests/sgx: Improve error detection and messages