This San Francisco production of a 50-year-old Stephen Sondheim musical speaks pointedly to 2022, writes theater critic Lily Janiak.