fix data race in driver.Open