Original commit message from CVS: Added testcase for failing bin iterate function due to glib thread-unsafeness.