[gnome-base/gnome-session] backport runtime logind detection patch to 3.6 branch