Revert "actor: Plug a leak in the implicit transition removal"

This reverts commit 158af1ff594d8984b59dcf90654ed04cd8c53e16.

This commit introduced a regression, so the leak will have to be fixed
in another way.