g10: Simplify semantics of get_pubkey_byname.