Dirac line nodes and effect of spin-orbit coupling in the nonsymmorphic critical semimetals MSiS (M = Hf, Zr)