BS-8390 : reverting orphans deletion and add condition on flownode_instance to deleted = false (where the true ones are the orphans...)