Change thumbnail cache to use a LIFO queue

This should fix the problem of covers being rendered slowly at the end
when scrolling through a very large number of covers very quickly.