zookeeper: use panic instead of assert for error handling

Otherwise, the error check are not compiled when we define NDEBUG.

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