Fix flags_tests for older platforms am: b390ba9fad

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

Change-Id: I80363b021c3b64a901617d3b19ac10293e71210d