fix(es/decorators): Avoid class state leakage for nested undecorated classes (#12076)