Make sleep and shutdown functions work on systemd's logind

Continuation of https://github.com/qbittorrent/qBittorrent/issues/1187
Allow sleep and shutdown features to work under a system using systemd's logind. UPower's `Suspend()` refuses to work saying it's deprecated and ConsoleKit is not running at all so shutdown is nonfunctional.