Auto merge of #985 - longshorej:sem_getvalue, r=alexcrichton

Add sem_getvalue to unix

Adds `sem_getvalue` for supported platforms.

Reference: https://www.gnu.org/software/libc/manual/html_node/Semaphores.html