fix infinite loop while updating etags, fix for #4365
keep a list of users we already checked to avoid loops
update etags for user we haven't checked yet
run first getUsersItemShared() with the owner
Merge branch 'stable5' into sharing_fix_infinite_loop
Merge pull request #5416 from owncloud/sharing_fix_infinite_loop

sharing: fix infinite loop