I am assuming the airport had stalls with doors, and those doors had latches. I admit I don't travel very widely, but I'm yet to see hands-free stalls.
It shouldn't be hard to order the sequence of steps such that washing your hands is your last activity before leaving the bathroom.