How Patent Races Impact Innovation