Parser: Attempt to fix updateStats() assertion
The rest of the code assumes that scheduled >= done, so setting done to 0 first could briefly invalidate this assumption. Switching to a release operation when flushing ensures other threads will see the updated values in the order they are scheduled