Renewable energy developer SPI Solar has sold shares to a Chinese real estate investor for $43.8 million.