Clear session before setup

Fixes https://github.com/owncloud/core/issues/11861
Merge pull request #11883 from owncloud/clear-session-for-setup

Clear session before setup