Convert CRYPTO_LOCK_EC_* to new multi-threading API