Remove dead code in x509_lu.c.

See also upstream's b62a2f8a373d1889672599834acf95161f2883ce, though
upstream left the lock calls in by accident. Otherwise, the change
appears to be correct. I see no side effects of x509_object_idx_cnt
beyond the return value and *pnmatch, both of which are discarded.

Change-Id: Ic2124a733a61591bd1b264164726ce6c69ce10c9
Reviewed-on: https://boringssl-review.googlesource.com/6347
Reviewed-by: Adam Langley <alangley@gmail.com>
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c
index 1bdcddf..8d4b163 100644
--- a/crypto/x509/x509_lu.c
+++ b/crypto/x509/x509_lu.c
@@ -555,13 +555,8 @@
 	sk = sk_X509_CRL_new_null();
 	if (sk == NULL)
 		return NULL;
-	CRYPTO_MUTEX_lock_write(&ctx->ctx->objs_lock);
-	/* Check cache first */
-	idx = x509_object_idx_cnt(ctx->ctx->objs, X509_LU_CRL, nm, &cnt);
 
-	/* Always do lookup to possibly add new CRLs to cache
-	 */
-	CRYPTO_MUTEX_unlock(&ctx->ctx->objs_lock);
+	/* Always do lookup to possibly add new CRLs to cache. */
 	if (!X509_STORE_get_by_subject(ctx, X509_LU_CRL, nm, &xobj))
 		{
 		sk_X509_CRL_free(sk);