Parser: Fix stats callback parameters ordering & fix potential races in stats usages
This fixes the onParsingStatsUpdated
callback parameters order, and attempt to ensure the stats won't change while being evaluated.
It should also marginally improve performances by reducing the number of atomic operations and relax the ordering for most of them