fix deadlock
	modified:   thread.go