Rename pididx -> pidx in SharedArray code.

Closes #5891