Fix crash when using rotation with threaded driver.