Remove the last usage of PTHREADs in linearizer.