sem_destroy - destroy an unnamed semaphore
#include <semaphore.h>
sem_destroy() is used to destroy the unnamed semaphore, sem, which was initialized by sem_init().
If successful, sem_destroy() returns 0 , otherwise it returns -1 and sets errno to indicate the error condition.
sem is not a valid semaphore.