Created attachment 339416 [details]
Here is an (untested) patch.
Created attachment 343684 [details]
The new patch does it all async, and adds CanRestart and CanStop methods for use in gnome-session. It has been tested.
Created attachment 343840 [details]
ported to 0.92
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
Applied in ConsoleKit-0.3.0-9.fc12
Filed upstream: http://bugs.freedesktop.org/show_bug.cgi?id=22178