A new study suggests that reducing the number of men who go into prison might curb the spread of HIV.