Fix benchmark threading.