Fix CC handling for no large object space case

There was an assumption about the existence of LOS that caused check
failures. Fixed this code. Also added a regression test.

Bug: 64393515
Bug: 63467744

Test: test-art-host

(cherry picked from commit 47863bbf4ffe4c52bbe68076706f421b3a873814)

Change-Id: Id14371f9e7c475a5fd0cf706c4e9ae041200bcce
5 files changed