odb: Straighten oid prefix handling
Merge pull request #1792 from libgit2/ntk/bug/prefix_size

odb: Straighten oid prefix handling