Fixed ZooKeeperProcess and ProcessWatcher to avoid deadlock during ZooKeeperProcess termination.

Review: https://reviews.apache.org/r/22521