std: Make connect_timeout return Err on zero duration

[breaking-change]