Work around django-mysql-pool issues with autocommit state (bug 920081)