Density-dependent mating behaviors reduce male mating harassment in locusts