shmem/mmap: do not use O_CREAT in shared memory attach

master commit
open-mpi/ompi@56a8687c2a06b503a00dc92c41bd20bf761e040d