Optimize synthetic deleted generated when replicating from storage

Do not generate child record delete when parent is deleted in the same transaction.