Northamptonshire were bowled out for 94 to concede a first-innings lead of 365 to Yorkshire on day two at Headingley.