partially revert the before patches :(

this seems to be needed for multi-instance and slow modules. i'm not sure i understand
why this helps and really don't like this code here, but avoids some segfaults for now.

steps to reproduce were:
- dr mode, do 3-4 heavy instances of denoise (profiled), best with parametric blending
- delete one
- go back to lr mode.