Fix data race in baseConn