[Libguestfs] [PATCH v4 2/6] daemon: refactor tsk code