US nuts and snacks maker John B. Sanfilippo & Son has reported a first-quarter net loss, hit by volume declines.