Clear out the ref fields from MonoDomain before calling mono_gc_clear_domain (), since they will be invalidated by that call, and a GC could try to mark the invalid objects. Fixes #14339.