Merge topic 'backport-3.31-process-timeout-terminate' into release-3.31

e2cfc61e5e execute_process: Restore termination of processes on timeout

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11408