local-metadata: Check cache and local thumbnails for thumbnails.

https://bugzilla.gnome.org/show_bug.cgi?id=734636