use abstract mutex_t for gcrypt locking callbacks