fix bug where underlying zookeeper instance id manager session state was never checked for validity during id generation or ending of id session