share table clean-up: make sure that we only remove files/folders

Addition to this pull request: https://github.com/owncloud/core/pull/5129

Make sure that the update script only removes file/folder shares.

@DeepDiver1975 @kabum please review. Thanks!