make sure the GIL is released in ThreadTest