Australia’s rapid embrace of rooftop panels—now installed on one in four homes in some areas—has collided with another hot spot of investment, construction of apartments and homes.