odb: Straighten oid prefix handling

The size of the prefix cannot exceed 40 nibbles (`GIT_OID_HEXSZ`)