Fix no-ec, no-tls1_3 and no-tls

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6321)
diff --git a/test/sslapitest.c b/test/sslapitest.c
index 10bfc8a..9b0237e 100644
--- a/test/sslapitest.c
+++ b/test/sslapitest.c
@@ -1197,6 +1197,7 @@
 #endif
 }
 
+#ifndef OPENSSL_NO_TLS1_3
 static SSL_SESSION *sesscache[6];
 static int do_cache;
 
@@ -1324,6 +1325,7 @@
 
     return testresult;
 }
+#endif
 
 #define USE_NULL            0
 #define USE_BIO_1           1