Avoid multiple runs of gpgsm --learn-card
If multiple smart cards with unknown certificates are inserted then
learn cards might be triggered multiple times (once for each card). But
the gpgsm command processes all cards so that running it once is enough.
- GnuPG-bug-id: T6846