Move waitpid outside the socket connect attempt loop.

waitpid was causing the test to hang indefinitely every 3-5 runs.
Lower IO::Socket::INET timeout to 1 second.

This reduces the time that t/start-server.t takes from
~30 seconds to ~5 seconds, now that the timeout matters
for the 'bad executable' test.
Merge pull request #2 from kanatohodets/waitpid-tweak

Waitpid tweak to fix hanging tests