Move updating of lumi statistics to end to avoid any races.