exec: run attachWait in a goroutine