fixing shrd boundary conditions for NUM_THREADS > 2 in concurr_common