Berthon Gabriel, Psychiatre à Niort