Investing Social Security surpluses in the stock market affects the government's asset holdings but does not directly increase national saving.
When Social Security surpluses are invested into the stock market, government asset holdings are affected.