JS-255 Fix a deadlock in the progress meter.