Fix compilation errors due to threadmanager becoming abstract if cumulative counts are disabled.