All-Optical Control of Long-lived Spin Coherences in Rare Earth Doped Nanoparticules