Phoenix-1112: Atomically rebuild index partially when index update fails

Probably a better home would be MetaDataUtil as this doesn't have anything to do with MetaDataClient