Returns the database to its original state (when the xref was first read) by undoing any modifications.
This function should be used with restoreForwardingXrefSymbols when reading or writing any xref object.