fix potential race contition in parallel for loop over map