bugfix: prevent another endless loop in the ratelimiter

The message that reports how many messages were lost due to
ratelimiting was sent before reseting the state that led to it. If it
itself got ratelimited, this could lead to an endless loop.
bugfix: prevent calling tellLostCnt() twice