tor-control-port.js freezes browser
It turns out that by switching the socket to a fully nonblocking outputstream, we can stop this freezing. Mozilla's nonblocking outputstreams require the use of asyncWait; otherwise they frequently throw NS_BASE_STREAM_WOULD_BLOCK. Fix attached. See also #8642 (closed).