Nearly a half-million people who were displaced within Syria by the war have returned to their homes, the UN refugee agency said Friday, pointing to a “notable trend of spontaneous returns” this year.