Make logic in RingBuffer::WaitForReadsAllowed check whether the timeout actually set in timeout_ms has been reached rather than assuming timeout_ms is always going to be 10 seconds.