Refactor access to identity's transport name.
See https://invent.kde.org/pim/kleopatra/-/merge_requests/16#note_427791
There is only the transport name of an identity, which is of interest
throughout the code, so instead of handling an identity in the calling
functions, now there's just the name of an identity's transport returned
to be used, further reducing overhead.