Troubled US doughnut maker and retailer Krispy Kreme has posted a net loss for the third quarter and said it recently sold the remaining assets of its Montana Mills bakery chain.