largefiles: add tr backup for largefilesdirstate
This will help us in automatically restoring the largefilesdirstate if a
transaction is rolled back.
Differential Revision: https://phab.mercurial-scm.org/D11611
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.