Improvements to handling screen-lock and screen-saver action queues