If file is opened O_WRONLY, do not mmap.