This patch fixes a crash when using process launch -t to launch the inferior from a TTY. The issue is that on Darwin, Host.mm is calling ConnectionFileDescriptor::Connect without a socket_id_callback_type. The overload passes nullptr as the function ref, which gets called unconditionally as the socket_id_callback. One potential way to fix this is to change all the lambdas to include a null check, but instead I went with a NOOP.
The patch doesn't include a test even though it's trivial to write one. The reason is that we really don't want the test suite spawning (and leaving around) Terminal.app instances on every run.