[libvirt PATCH v2 33/56] src: introduce helper API for creating GSource for socket