Testing the lattice modes of NaCN by nuclear resonance photon scattering