Rename dbg->fd to dbg->sock_fd for clarity.

Quick prep for #763 part 3.