make monitor test more robust

on freebsd the socket connect is not delayed succeeds immediately