dog: initialize a reference count of check/repair work correctly

Current dog initializes a reference count of check/repair work in an
invalid way. This patch fixes it.

Cc: Valerio Pachera <sirio81@gmail.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>