JA Solar Holdings Co., the world’s third-biggest solar-cell maker, is considering building a factory in the U.S. or another country as Chinese producers seek to bypass trade sanctions.