fix weird hangs caused by stderr hanging open

This fixes some hangs in git-watchman