Thumbnailer: Ensure a single thread will be created

Or rather that concurrent thumbnail request won't cause the 2nd thread
to call std::terminate
1 job for master in 5 minutes and 40 seconds
Status Job ID Name Coverage
  Build
passed #263235
amd64 debian
build-and-coverage

00:05:40

60.4%