Use 0 as a sentinel for no timeout.

That's what everything else does for timeouts. -1 is more conventional
for non-timeout things, but these are timeouts.