python/tests: make the test_assoc_group_fail2() test more resilient against timing