fix bug：deadlock for connection pool