Fix guard controlling whether nested acquire calls are allowed

Resource counting as a safe-guard against nested acquire calls
is implemented if and only if MBEDTLS_X509_ALWAYS_FLUSH is disabled
_or_ MBEDTLS_THREADING_C is enabled.
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 4f33d21..59898f7 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -193,7 +193,8 @@
 
     if( cache->frame != NULL )
     {
-#if !defined(MBEDTLS_X509_ALWAYS_FLUSH)
+#if !defined(MBEDTLS_X509_ALWAYS_FLUSH) ||      \
+    defined(MBEDTLS_THREADING_C)
         return( 0 );
 #else
         /* If MBEDTLS_X509_ALWAYS_FLUSH is set, we don't
@@ -253,7 +254,8 @@
 
     if( cache->pk != NULL )
     {
-#if !defined(MBEDTLS_X509_ALWAYS_FLUSH)
+#if !defined(MBEDTLS_X509_ALWAYS_FLUSH) ||      \
+    defined(MBEDTLS_THREADING_C)
         return( 0 );
 #else
         /* If MBEDTLS_X509_ALWAYS_FLUSH is set, we don't