Fix file cache updater (backport to master of #5513)

Backport https://github.com/owncloud/core/pull/5513 for master.

Since I couldn't simply cherry-pick it I thought that it might be good to open an additional pull request and let Jenkins test it.