I've been there! Tough it out until one hand is free for half a second. Nobody will know.
I've never run into that when performing *knocks on wood*. I'm usually concentrating so hard on the music that I can't think about anything else, including where I am and who I'm playing for. Judges at competitions usually tell me that I have good stage presence, which I think is hilarious because I'm always just forgetting where I am like the goofball I am.