Quick bowler Morne Morkel will miss South Africa's final Test with Pakistan because of a hamstring injury.