fixing issues with cleaning sessions, close #12435

This commit add customized filesessionstore.py to replace
django.contrib.sessions.backend.file.py,
see https://code.djangoproject.com/ticket/22938
Once this is fixed filesesionstore.py should be removed in favor of the new
Django version