The idle timer has its max value and can overflow. We measure time passed since the sys_clock_set_timeout call. Take possibility of the overflow into account. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>