fixes recursion issue

both selbench and selblocks applied the same patches and ended up
creating a loop that never ended. Now they flag when they've applied
patches and check the flags before applying them.