[Fix Bug]Fix The timeout non thread safe problem