socket-util: Move get_null_fd() to daemon.c.