Make sure semaphore is enabled for FreeBSD

Python might be compiled without semaphore support, make sure it has been compiled with semaphore support.