Use MarkIfNotInToSpace for SemiSpace::MarkObject

SemiSpace::MarkObject is called from ModUnionScanImageRootVisitor
which. These roots may be visited multiple times by the GC. One
example is the allocation stack traces and a class visiting the same
ArtMethod twice.

Bug: 27435111

(cherry picked from commit 9a9aee662ebde18bed2a8e263c921df4f529b27b)

Change-Id: I2387a6efaed79d37f2ee47725637af29e78e3548
2 files changed