posix semaphore test suite and fixes
Nice job Joris. I ran the tests I ported from freebsd and just have a
couple of minor fixes to propose.
The proposed changes are here. They still need some style cleanup:
If there are no objections, I'll commit them on Thursday 3 July.