[JSEP] fix scatter-nd jsep kernel (#23755)
Adjusts scatter-nd kernel implementation for the case when
reduction=none and there are duplicate values in the indices input
tensor. If duplicates are detected, a single thread processes all
indices to ensure correct results.