correct bug in tracking atom->nlocal vs. atom->nmax when allocating pbc enforcement buffers
(cherry picked from commit 45a2dd36d0f0643d86344de44e2c260fba2e2e77)