For dealers who still had cars and trucks to sell, June brought booming demand and another jump in the industry’s average transaction price, which topped $40,000 for the first time. But for dealers with limited inventory, it was a prelude to a summer of missing out on the party.