A potential deal to avert closure would mark the government’s fourth intervention to rescue a metals plant this year.