GPs could threaten mass resignation over NHS contract