[gnome-base/gdm] backport runtime logind detection patch from 3.8