optimization to self._next_timeout calculation

If callback_time is large, it cost a lot of time.