gpg: Fix get_best_pubkey_byname to consider the first match.
* g10/getkey.c (get_best_pubkey_byname): Always use PK0 to search by get_pubkey_byname. Add initial call to pubkey_cmp to fill BEST at first before the loop.
- Fixes-commit: 44604209c1cfe18532d13eda63d8c1f86a6e12ec
- GnuPG-bug-id: T4713
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>