While we guarantee that a zero-filled sem_t variable will triggerEINVAL errors, a sem_t on the stack may have garbage, so make thetests portable by moving the sem_t from function to file scope.problem found by miod@
branches: 1.1.1;Initial revision