Add support for pause on screen lock.