mds: update segment references during journal rewrite

... to avoid leaving log events that reference log
segments by offsets which no longer exist.

Signed-off-by: John Spray <john.spray@redhat.com>
Shouldn't this be std::map<uint64_t, log_segment_seq_t>?