add locks to protect data structure used in Chebychev's inequality