REGTEST: checks: Fix sync condition for agent-check

agent-check.vtc script fails time to time because the 2nd cli command is sent to
early. Waiting for the connection close in the s1 server should be enough to be
sure the server state is updated.
1 file changed