Reduce the heat to medium and add the olive oil to the skillet. Add the onions, leeks, and garlic to the skillet and cook undisturbed for 5 minutes. Add a pinch of salt and continue to cook slowly for 20 minutes, stirring occasionally until they are golden brown.