Utilities and renewable-energy advocates have long had a complicated relationship. Yet the prospect of PG&E Corp. tipping into bankruptcy by the end of January has sent shivers through the solar-and-wind sector.