Add tests for Semaphore.
Add tests for Semaphore.

Which we seem to have missed entirely so far. These also cover the
Semaphore hangs reported in RT #128628.

zostay/roast,dogbert17/roast,zostay/roast,perl6/roast,bitrauser/roast,dogbert17/roast,bitrauser/roast,zostay/roast