Doughnut maker Krispy Kreme said it expects to report a net loss for the second quarter as results continue to be adversely affected by legal and regulatory costs.