Update for upstream TCP listening changes.

(The changes come from https://github.com/mozilla/rust/pull/8954.)