This sounds like something already reported once: MeshUnwrapper object freeze bug
Please, could you try your code after deleting the double precision vertices from the mesh object?
You can delete them with the hidden _TestDestroyDoublePrecisionVertices command.