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.
I would consider: `def get_backends(tuples=False)` to simplify a bit and avoid the need for an extra loop in the new `get_backends()`