Fix timer offset

JRuby on Travis exposes a bug in the logic of the `Timer` class. This is a proposal to fix that issue. There are multiple possible solutions. Another option is to sleep a little bit longer than required (but we might delay important timers).