From the logic of ideas to active-matter materialism: Priestley’s Lockean problem and early neurophilosophy