Original commit message from CVS: * testsuite/test_bin.py: fix race condition because of state thread