La139 NMR investigation of the interplay between lattice, charge, and spin dynamics in the charge-ordered high- Tc cuprate La1.875Ba0.125CuO4