fix temp file leak in sem_open on successful creation of new semaphore