Add more checking to WrappedSuspend1Barrier am: 32578abac2 am: f1bc391c03

Original change: https://android-review.googlesource.com/c/platform/art/+/2966069

Change-Id: I6953c42f02474b18c01af6be9f144141491e8b0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>