Fix EZP-23176: Sessions are always started for anonymous user

JIRA: https://jira.ez.no/browse/EZP-23176

`eZUser::setCurrentlyLoggedInUser()` always starts a session, even for anonymous.

Replaces ezsystems/ezpublish-kernel#932