Nicholas Britell’s score for the HBO series, which concludes on Sunday, has developed, episode by episode, into a classic theme-and-variations work.