Merge pull request #5005 from libgit2/ethomson/odb_backend_allocations odb: provide a free function for custom backends