sheep/vdi: fix coredump when sheep starting up

The assertion should be prior to the variable increment.

Signed-off-by: Ruoyu <liangry@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>