[scudo] Pass the max number of blocks to popBlocks (#70243)

Make the cache have the fully control on how many blocks to be popped
(At before, it depended the number of blocks stored in the
TransferBatch)

GitOrigin-RevId: 4e8d6c4f82a557313d3a46e3d567b2042ea38d92
3 files changed