The New York City Marathon course has changed little since 1976, but the neighborhoods along the route have: most are richer, and their ethnic makeups have shifted.