gpg: More fix of get_best_pubkey_byname.