ATOMS: ALMA three-millimetre observations of massive star-forming regions - XVI. Neutral versus ion line widths