Path-Integral Monte Carlo Worm Algorithm for Bose Systems with Periodic Boundary Conditions