Close session when loading apps

Otherwise the session is blocked while all remote apps are loaded. This can be very annoying especially when apps.owncloud.com is down or not reachable.
Merge pull request #11543 from owncloud/closeSessionForAppsLoading

Close session when loading apps