remove deleted files from oc_share

remove shares from database for a given file if the file was deleted, possible fix for #4836