For ENG-3176, check for network threads when invoking ZooKeeper and crash if in the wrong thread