Update Ceres to current upstream version

This brings a fixes for threading issue in BLAS
making BA step more robust (there were some in-detemrinacy
caused by this threading issue).

Also brings some optimizations, which does not directly
affect on blender.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56199 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35039: two other issues with curve caps

- Skip filling caps if spline is cyclic
- Use hard limit of 1024 for curve resolution

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56200 954f8c5b-7b00-dc11-b283-0030488c597c