Delay linkage checks when validating the weakref attribute.