Prevent backgroundScan() from looping if opendir() is failing for the same path
Merge pull request #3335 from owncloud/prevent-scan-loop

Prevent backgroundScan() from looping