Solar pay-as-you-go plans have been hailed as the answer to bringing clean, affordable electricity to millions, but the system can break down catastrophically.