Merge "[Thread] enforce a timeout for waiting FTDs' output in integration tests" into main