Add thread awareness in reuse distance sampler and prediction stuff.