Onset of magnetism in optimally electron-doped LFe1-xRuxAsO1-yFy (L = La, Nd, or Sm) superconductors around x = 1/4