stereo_mpi: Fix a bug with --threads