At this time , due to Shaftesbury 's insists , Locke wrote the Two Treatises of Government . Around this time , most likely at Shaftesbury 's prompting , Locke composed the bulk of the Two Treatises of Government .