Use OCP\Share::unshare() instead of directly using OCP\Share::delete()

Fixes #4912 (partially) as suggested in https://github.com/owncloud/core/pull/4856#discussion_r6436470

@schiesbn