ZOOKEEPER-2498: Potential resource leak in C client when processing unexpected / out of order response (Michael Han via rgs)