chThread_POSIX: only use named semaphores on Mac OS X

Creating a basic Semaphore class to make it easier to handle
creation/destruction logic.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>