CRYPTO_LOCK_DSO
i = CRYPTO_add(&dso->references, -1, CRYPTO_LOCK_DSO);
refs = CRYPTO_add(&dso->references, 1, CRYPTO_LOCK_DSO);