I think the duplicate entries in ini\game.ini have to be manually removed. Usually MAME never overwrites nor removes unexpected options from an existent ini.
OTOH, if you remove the ini\game.ini file completely, when a new one gets created it won't contain the hlsl options.