Chinese solar giant cuts deal with bondholders and avoids bankruptcy—for now