Document Ids were not being updated at commit

The original ORecordID instance was not updated at the transaction
commit. This came up with the optimization from commit #1695.