HPCC-10379 Add some very simple unit tests for the semaphores

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>