core: Check for unsupported export mode flags
src/engine-gpgsm.c (gpgsm_export, gpgsm_export_ext): Return error if an
unsupported mode flag is set.
The minimal mode flag has no effect for X.509 certificates, but we still
treat it as supported (as documented in the API documentation).
- GnuPG-bug-id: T5757