osdep/semaphore_osx.c: Include osdep/semaphore.h before #ifdef

osdep/semaphore.h is the file that defines the very #define that is
tested in the #ifdef that wraps its inclusion, so it was never compiled.