shmem/mmap: do not use O_CREAT in shared memory attach
Per Gilles, we really should set the reentrant flags when building Java support