Bugfix: Fix computation of sync status when multiple folders are synced

https://github.com/owncloud/client/issues/9270
https://github.com/owncloud/client/pull/10536
https://github.com/owncloud/client/pull/10642
