core: Support GPGME_AUDITLOG_DIAG for gpgsm.