Restore check to avoid duplicate method tables serialization (#61221)
When a custom method table is defined in one package and imported by
another, jl_foreach_reachable_mtable visits the same table twice (once
per module binding). This causes extext methods to be collected and
serialized twice, and on loading, jl_method_table_activate asserts
because dispatch_status was already set by the first activation.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>