Fix data race found with go build -race
Fix timeout on uploading big files