Fix mmaps of shared memory whose length is not a multiple of the page si...

...ze to round up the length during replay the same way we do while recording.