Bug 864516 - Do not refresh time displays when they are invisible

Both the homescreen and the lockscreen kept refreshing their time
displays even when another application was in the foreground or the
screen was off, both were fixed. The timers used for refreshing could
also be leaked, this was also fixed.