Add an overload of ExecAndReturnCode taking a timeout

Enables callers to timeout waiting on a subprocess.

Bug: 177432913
Test: test-art-host-gtest-art_runtime_tests32
Change-Id: I7a27e0ca4679f45daf815d7e2563ca9b723bd701
3 files changed