wrap socket:connect method to allow explicit connect-phase timeouts; also document; also fix timeout bug in accept wrapper