Vuillemin Philippe, Psychiatre à Lons-le-saunier