Beijing has shied away from playing a direct part in the bloody conflict, but it has joined Moscow in resisting Western efforts to sanction Damascus