OpenBSD has sem_timedwait().

This change released under the MIT license with permission from the original
author Robert Nagy.
Merge pull request #1062 from sethjackson/sem_timedwait

OpenBSD has sem_timedwait().