Fix error handling in x509v3_cache_extensions and related functions