Sunderland midfielder Alfred N'Diaye has joined Turkish side Eskisehirspor on a season-long loan deal.