Constraints from the duration of supernova neutrino burst on resonant light gauge boson production by neutrinos