change sem_open() mode to 0666