From niddy + cock, using cock as a diminutive suffix as if niddy + -ock. This etymology is incomplete. You can help Wiktionary by elaborating on the origins of this term.
niddicock (plural niddicocks)