Fix resume/suspend

See https://github.com/OpenELEC/OpenELEC.tv/issues/2487
and https://forums.plex.tv/index.php/topic/88788-oe-install-and-package-status-thread/?p=807696