Fixes #5952, restores ignore access and hidden override states before recursively calling ->disable() on sub-entities