Atomically set cluster.xml and stores.xml in metadata store