Actually you can release the semaphore by using the ipcrm -s command where is the identifier of the semaphore (which can be found with the ipcs -sb command.

Or you can restart the instance

Joe