asn1_do_lock
int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
if (asn1_do_lock(pval, -1, it) > 0)
asn1_do_lock(pval, 0, it);