Added fiber-compatible semaphore.