[runtime] Fix share/private flags when doing file mmap.
[System.Core] Add new tests for MemoryMappedFile.