Move DCHECK for double gc-root update outside mark compact lock

Doing DCHECK inside the critical section causes lock level violation and
doesn't dump stacktrace.

Test: manual HWASAN test
Bug: 335549484
Change-Id: I72dc6af9c11c84c8b3c9d4011b3d866030164502
1 file changed