Lazard, the investment bank that advised SolarCity on its sale to Tesla, made an error that discounted the value of the solar energy company.