Protect test_pool against OS than don't support semaphores