Fix latent bug in restart marker thread unpause logic
Fix latent bug in restart marker thread unpause logic

When we start allowing multiple simultaneous JPEG readers, we will need
to ensure all of them are finished before signaling the restart marker
thread to unpause.

openslide/openslide,openslide/openslide,openslide/openslide,openslide/openslide