Corrected semaphore timeout unit to microseconds.