Make legacy build remove ES6 Set optimizations.
Use `baseEach`, `baseForOwn` and `baseForIn` to reduce dependencies on `baseCreateCallback`.