Check for buffer empty on each timeout read in avalon_gets.