msgcollector: fix race condition not always closing progress bar when it reached 100%