Ensure that we don't leave pages locked when removing them from the
eviction queue.