"How can a solution work on an imaginary problem?
The 'solution' is to recognize it's imaginery.
The quickest way out is to realize you're not in."
The author may have meant that it's not possible to find a solution when there's actually no problem, just the illusion of one.
The most accurate course of action is to realize that solving this problem is unnecessary because it doesn't concern us.
How could this relate to the subject of dealing with urges?
It's when You understand, that urges are not Yours in nature, but instead are the doings of the mind, which tries to fool You into believing, that it's Your need to fulfill whatever the mind suggests You to do.
Since You're not Your mind, then urges are also not part of You, and since they're not part of You, then there's no reason to get involved with them.