fix lid suspend with upower-0.99

fixes https://github.com/linuxmint/Cinnamon/issues/3054

based on Only listen to lid-is-closed changing patch from

https://bugzilla.gnome.org/show_bug.cgi?id=709736