SAS’s exit follows a growing list of American technology firms scaling back operations in China amid rising competition and geopolitical strain.