Wait on Zookeeper Flush

Turn the zookeeper flushing logic into a loop that waits for the deleted path to actually go away.

cc @Casen