Adding gcrypt callbacks for pthreads.