When Is an Arms Rivalry a Prisoner's Dilemma?