fix g.user for celery tasks