Handle sending from threads other than the gateway's ioloop thread.