Effects of solar-wind composition on the threshold for plasma instability in the transition region