Use disposable journal in `rewriteBranch`.

See #364.