This is not an established idiom in English, as far I as know, rather it seems to be a simile used in some kind of text. The meaning would depend on the context, which hasn't been provided. For example, this might describe someone's hairstyle: the strands of hair are fixed to stick out as hairpins stuck in a mud cake.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.