Only run the script for items that has been unlocked.

For locked items it's not possible to add own mnemonics or notes
so it's not useful to be able to hide these mnemonics.