[WIP] make sure that the etags get propagated correctly

make sure that etags are propagated correctly during share and unshare operation.

It is still work in progress!
Share and unshare should already work. This part can already be tested and the code can be reviewed.
"Unshare from self" is missing, will follow soon.

fix for #9183