logserver.go: fix a bug of more goroutings