Use rb_clear_cache in set_const_visibility