MAPREDUCE-6067. native-task: fix some counter issues (Binglin Chang)