core: only attempt to connect to a session bus if one likely exists.