[CI] Add timeout to test
[CI] Add timeout to test

Kill stuck smoke tests to get signal early and free up CI resource.
The timeout is set to 40min (~2X current test time on CI). When the
text process is killed due to timeout, it will exit with code 124.

Closes: #1112
Approved by: huitseeker

aptos-labs/aptos-core,libra/libra,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core