Merge "sharedmem.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)"