reset semaphore