LPS-39077 Update the status of dependent entities when move or restore elements in recycle bin

Reviewed by @juliocamarero