Change the global poll function to check that the node tree is not
from a library, disabling most Node Wrangler operators.
This fixes the issue, not only for material nodes as in the original
report, but also on compositing node trees from linked scenes and
linked geometry nodes.