ioutils: fix race in access closeErr in bytespipe Upstream-commit: 3d80884f3d7d60c51c0ccd6b487ebbeb98d2f7e8 Component: engine