fix failure behavior of sem_open when sem does not exist