Fix freeing of frame memory to correct bucket.

Before we sometimes ended up putting it back in the wrong one, if we
deoptimized. This corrects that issue, hopefully improving memory use.