David Alain, Psychiatre à Lure