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