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