Race to avert national rail strike