Grinfeder Michel, Psychiatre à Cahors