Fix #34249: collapse edges crash blender with a specific mesh

OpenMP block was using shared variable, which for sure leads to
threading issues.

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