Stop updates when the screen is locked rather than off

Otherwise tapping the screen after it's turned off but before it's locked
produces unpleasant "time jump" effect.