The session prefetch_prev_ref flag doesn't fix the problem of avoiding the same page being processed multiple times. Change the way we set this prefetch_prev_ref flag to let the skip logic work.
Still, this flag approach doesn't work when the session operates on two different cursors at a time, as the value of prefetch_prev_ref gets reset. Currently, we are not targeting fixing this scenario as it is not that common.