fix random failure (race) in "test_monitor()" test in test-client.py.
test-client.py
https://bugzilla.redhat.com/show_bug.cgi?id=2154288