feat($scaling): don't generate duplicate thumbnails #1139

Whenever the thumbnail module encounters a specific file that already has a generated thumbnail (or a thumbnail is being generated), use the already or in-progress thumbnail instead of generating a new one.