Support switching in/out of CONNECTED_RO (see ZOOKEEPER-1607)

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>