tproxy/worker.py: backwards-compatible fix for gevent workaround

May as well fix this the proper way.