Close and reset cursors that could prevent eviction during recovery.