Don't load the apps when we need to upgrade

The loading can call functions that require new tables, like oc_jobs
Merge pull request #3889 from owncloud/apps_preload

Don't load the apps when we need to upgrade