Mutual and unilateral cooperation in arms race settings