Chastain will portray an actress with dementia whose most vivid memories are of rehearsing for the title role in “King Lear.”