That's a common misconception that is not quite true. There is only one scenario in which a NMC or NTC guaranteed inherently can disappear when a player is traded, and that is if they are traded
before their clause becomes active. For instance, when Subban was traded by Montreal his NTC was not set to kick in on his new contract until July 1st. Nashville thus had the option of not honouring the NTC for the remainder of the contract (and they chose not to), voiding its existence.
However, Lucic's NMC is very much active right now. Which means the only way that NMC disappears is if he additionally explicitly agrees to get rid of it. The Canucks can say that Lucic has to agree to also get rid of the NMC from the remainder of the contract before they trade for him, and they can refuse to sign an agreement that they, the Canucks, will recognize the NMC, but if the Canucks don't agree to maintain the NMC in the contract Lucic has the right to simply refuse to be traded at that point. Basically, Lucic gets final say on if his NMC disappears or not. Capfriendly mentions it here
here. But his clause doesn't just inherently disappear if he's traded.