Stable5 backgroundscan reuse etag

Backport of https://github.com/owncloud/core/pull/6225 to stable5

__untested__