tests/functional: use _wait_for_sheep to make sure that sheep starts

This fixes a false alarm of zk tests on my environment.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>