CURATOR-126: Fix race condition in CuratorFrameworkImpl.close()

Yes, please revert. Create a separate PR if you like.