Fix deleting invalid s2s shares

Make sure server-2-server shares can always be deleted, even if the share is no longer valid

fixes #12729

cc @DeepDiver1975 @PVince81 @schiesbn