I have to go to the bathroom alot anyways, but it has caused some problems with my OCD. For awhile I used to worry that I would pee my pants in public so anytime I felt like I had to go just the slightest bit I'd have to get to a bathroom. If I started feeling like I had to go say in class or work, my anxiety would get so high worrying that I would pee my pants. Sometimes I would even check to make sure I hadn't. Although it seems silly now, it was a real fear at the time.
I also go before I do anything. Before I leave the house is a must, and sometimes I'll go and start to walk to the door, and then turn back and go again. Before bed I have my little ritual, I go, then count to 37, and go again. I'm not sure why.
I'm not sure if this is exactly what your talking about, but hopefully it relates somewhat. Oh, and you're aloud to laugh about my fear about peeing my pants.