Fixes #19506 This fixes the issue of errors on create and the tty not being able to be restored to its previous state because of a race where it was in the hijack goroutine. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: a1eb6029cc4e4ccd820b0aac147a6121f1967ba2 Component: engine