util: consume process's stderr and stdout to prevent hanging (IDEA-148084)