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

Add a field to the CuratorFrameworkFactory builder so that this value can be configured.