fix incompatibilities with TB2

I tested this with Test-Simple-1.005000_006.
The return value of with_immutable still indicates whether all tests contained
in its block had passed, even though this is undocumented.