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