Implement `git_odb_object_dup`