make monitor test more robust

on freebsd the socket connect is not delayed and succeeds immediately