Fixed ringbuffer put semaphore.