linux: Check for Logind first, then *Kit-s with UPower when detecting PM framework

Logind is the most likely candidate to work nowadays and latest UPower does
not provide suspend/hibernate API.
Merge pull request #5651 from rbalint/fix-suspend

Fix suspend with upowerd >= 0.99.1