Stocks tread water as gold, oil declines spook sentiment