Use disposable journal in `rewriteLeaf`.

See #364.