Implement loop timeout in ExecutionPlan

This change adds loop timeout support to ExecutionPlan,
covering the "interpreted execution" code path.

Bug: 145906499
Bug: 136735929
Test: NNT_static
Change-Id: I228318d8a588b20e95475c02711a77f34e1ff790
Merged-In: I228318d8a588b20e95475c02711a77f34e1ff790
(cherry picked from commit c8fede6106d6207d199ebe8094cedb6a7341e0af)
5 files changed