Replace thread_coroutine() with tornado.concurrent.run_on_executor()