EZP-22318: Allow to deactivate settings

https://jira.ez.no/browse/EZP-22318

Follow up of https://github.com/ezsystems/ezpublish-kernel/pull/730
This is needed to deactivate session cookie settings when running
through Symfony stack (session settings must not be altered in that
case)