Make KoShape::paintStroke const
Otherwise, we cannot paint the shape without detaching from the source shape.