Minor reordering optimization for PartitionCountingCallback.allCallbacksFinished()