use runtime.LockOSThread lock the goroutines in main thread