fd of 0 zero is legal
Improve waiting on a timeout

Moved wait_for_2 from wire_net to wire_wait and created a specific
wire_timeout_wait.