Turkey has legitimate security concerns: Mattis