use O_CLOEXEC to open semaphore files in sem_open