The use of Parallel LINQ with side-effects in its body is discouraged. Moreover, even the correct use of synchronization primitives is questionable as it neglects the parallelization gains.
Apply the aggregation in a LINQ operation without side-effects and use the result of the expression.