Fix update cleanup to only affect file and folders

Fix bug in the SQL query that cleans up stray shares for removed
files/folders, which is now correctly limited to that item type instead
of also removing all other share types.
Merge pull request #9515 from owncloud/update-sharecleanupfix

Fix update cleanup to only affect file and folders