Fix a bug where rolling back the first transaction to update an LSM tree could leave the metadata inconsistent.

refs #976