test_suite: fix race condition between iptables and ping