Andrej baron Winkler, deželni predsednik kranjski