Fixed bug NMS-6279 by adding synchronized() blocks around all access to List
fields inside ThresholdingSet.