Make update-cache be explicit about failed open() when doing