Chain grooving machine