gcrypt: Don't use thread callbacks for newer versions of libgcrypt