Thread safety test for gevent fsm.