Fixed #23925 -- Right auth backend path in session

Added the right auth backend path in session, based on the
path defined in settings.AUTHENTICATION_BACKENDS and not on
the actual path of the backend object.
test_backend_path