core: New helper function gpgme_addrspec_from_uid.