Add `Sdk31ModuleController` support to ART run-tests and gtests. am: 0d1c54de4f am: 768525e794

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

Change-Id: Id9004ceddb77f6105c4c2b20f05e88e659013c69