And with GPG_ERR_CODE_MASK

The error codes produced by GPGME turn out to be combined with
`GPG_ERR_CODE_MASK`. Pull out the original error with a
`& GPG_ERR_CODE_MASK`.

I have no proof that this is really what's happening, but some Russian
Web site says so.