Add '-no-vis' option to the 'minimal-surface' tests in CMake. Thread-safe issue reported by: @makeclean (#1452)