the only people who can use those commands are +m (either channel or global). if the person only has channel +m, then only info relating to their channels is shown. why would you want someone who has master access to a chan, or global master, to be denyed to see the key? why give them master access if you dont want them in the chan? simply don't give these flags out if you don't want people to have access to these commands.
dunno what the point is though, cos there are still lotsa other ways people with |o or higher could get the key for the chan (ranging from simply messaging the bot for it, through just forcing the bot to remove the key completely)