Fix history rename_async under uwsgi.