[updater] Fix backup infinite loop on symlinks. Ref core/#6918

Fixes https://github.com/owncloud/core/issues/6918