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