The only thing I can think of is changing them in game.
When the game is loaded, press tab or what ever button you have setup to get into the MAME settings. There is a option to set controls for In General, and one for In Game.
Just go to the In game and remove all the keybindings for the joysticks.
You would need to do this to each game individually.