Several operations in the inner loop may drop the object lock, with
nothing preventing the object from being freed and recycled in that
window.
Fix this: bump the paging-in-progress counter across the whole
operation. Don't bother freeing swap blocks from a dead object: the
terminating thread deals with that, and swap_pager_swapoff_object()'s
caller will retry if needed.
Reported by: llm-postcr