Merge pull request #3861 from libgit2/ethomson/refresh_objects odb: freshen existing objects when writing