changed sem_close() to sem_destroy()

http://www.mkssoftware.com/docs/man3/sem_destroy.3.asp
Merge pull request #1 from Cook13/patch-1

changed sem_close() to sem_destroy()