Fix filehandle leak in "git branch -D"