fix some sign comparison warnings in the parallelization

these were not really important, but it's nicer to be rid of them as
they clutter the output of some compilers...