Ensure that cached attribute info is freed on domain unload.
Enforce cached flag on custom attribute info.