test/func: wait after starting or killing sheep

Otherwise, test will be failure if using zookeeper as cluster manager.

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