Release semaphore by enum