Uncommenting thread locks in Sampler