Fix IPC driver on OS X

OS X does not support timeout on semaphore, so the tests block for ever.
Add a test to check that if we support or not that feature.

Change-Id: I1a6bec0d40a5166d5ea9643b5fca128b46b2ec02