I've had to do this in the past - out with my daughter and no wife around. She needs to go bad and I didn't feel comfortable sending her into the women's room alone.
It's right to a stall, wash hands, and out. Normal men get it and don't freak out. Besides, at five, a little girl doesn't even think in terms of privacy and embarrassment. They just think, "I have to go."