Nut producer John B. Sanfilippo & Son has booked a drop in profits in the second quarter.