Reduces the number of parameters passed in `sculpt_undo.cc`, additionally the `const` specifier is misleading here, as the `SculptSession` is modified via the `Object` reference. Pull Request: https://projects.blender.org/blender/blender/pulls/139252