Memmap: Cleanup code

This shouldn't have any effect on the behavior of the memmap, it should just be more readable now.
You also need to set view->mapped_ptr to views[i - 1].mapped_ptr.

Currently you are leaving it uninitialized for mirrors on 32bit, which is probably causing your 32bit issues.