ANGELA WEISS/Getty Images Stocks turned lower and closed in the red on Thursday after the Dow briefly crossing 40,000 for the first time. Markets are feeling optimistic after April inflation data was cooler than expected. The S&P 500 failed to extend its gains after closing at a record high on Wednesday.