pk-crypto: Work around Libgcrypt bug <https://bugs.g10code.com/gnupg/issue1594>.