Fix a data race in dial timeout