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

done; what about the constant?