Adding a check to prevent crashes on iphone 4

On slower devices sentinelSemaphore might not exist and sending it a signal will cause a crash