The rally for commodities this year has nearly fizzled out, with a slowdown in China’s economy fueling worries about demand for oil, copper, and other commodities — putting traders on alert over a potential repeat of China’s 2015 stock market crash and global slump in commodities.