A NSW train driver who claimed he was making “friendly and helpful” gestures has failed to have his dismissal overturned.