[JENKINS-26170] improve the peformance of NoActivityTimeOutStrategy

[JENKINS-26170](https://issues.jenkins-ci.org/browse/JENKINS-26170)
`NoActivityTimeOutStrategy` slows builds as it checks logoutputs for each letters.
Using `LineTransformationOutputStream` improves the performance as it buffers outputs and processes outputs by lines.