Fixes #6187 - Rewrite lifecycle environment destroy in dynflow