Syria has complained to the United Nations about Turkey's military offensive against Kurdish forces in the north of the country.