X509v3_cache_extensions(): Improve coding style and doc, fix case 'sha1 == NULL'