jit: Fix partial invalidation of larger blocks.

Fixes #7031.
jit: Use the end just to be safe.

In case clearing near the end of a block.
Merge pull request #7032 from unknownbrackets/jit-minor

jit: Fix partial invalidation of larger blocks