Boueilh Bernard, Psychiatre à L'hay-les-roses