[libvirt] [PATCH v3 5/7] storage_conf: Move username processing into common function