I have a similar problem sort of, which thankfully is dwindling lately in that there is that urge to masturbate a lot. It's an urge at least to me, which has got nothing to do with the fact whether I'm aroused or not.
I actually described the need to masturbate in a therapy session with an analogy of going to a bathroom: "Everyone needs to visit a bathroom, but I don't think many really enjoy it. Masturbating for me is the same thing. I have to do it, but I don't enjoy it. Like visiting a bathroom".
You might want to try tucking, if you want to get rid of that blasted thing telling you what to do. Since I've started tucking nearly 24/7, the urge to masturbate has gone down dramatically. As _it_ cannot "live" anymore like it wants to, the urge seems a lot less and I feel much better about myself.