Sainte Fare Garnot Laurent, Psychiatre à Versailles