Sir Keir Starmer has threatened to withdraw an offer of thousands more NHS jobs should resident doctors go ahead with strike action next week.