Coresets for Clustering in Graphs of Bounded Treewidth