Stanisław Sobek z Sulejowa - statesperson, Polish–Lithuanian Commonwealth