When hidden symbols are discarded by comdat rules we still want to
create a local defined symbol, otherwise Symbol::isDiscarded() relies on
begin able to check getChunk->discarded.
This is a follow up on rL362769. The comdat.ll test was previously
GC'ing the __wasm_call_ctors functions so the do_init function was
not actually being included in the link. Once hat function was
included in triggered that crash bug this change fixes.
Fixes: https://github.com/emscripten-core/emscripten/issues/8981