... from ksmserver-logout-greeter, by making the DBus calls synchronous. (cherry picked from commit 1305fe0a)