Think of "nuts and bolts". If a nut is not tightly screwed to its bolt, it will come loose and disassemble itself from the unit. However, given the types of cartoons you have been watching lately (I've helped you a few times recently) I would be inclined to say that, in this instance, "the loose nut", may refer to a character that was not altogether reliable or perhaps even slightly insane.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.