LimitRate should discard read buffer

the LimitRate buffer should discard the read buffer, else old log lines can appear 1 second later (after the skip special error record), thus out of order.

this pull request also adds the otherwise failing test