Multithreading cleanup up in GeomDet

Add const to the declaration of a function
return type. The returned pointer was not
being used to modify anything. Eliminates
a static analyzer warning.
Merge pull request #3829 from wddgit/multithreadCleanupGeometryDet

Multithreading -- Cleanup up in GeomDet