The kinematic Sunyaev–Zel’dovich effect of the large-scale structure (I): dependence on neutrino mass