Effect of nucleon effective mass and symmetry energy on the neutrino mean free path in a neutron star