odb: Error when streaming in less|more bytes than declared

 - Make `git_odb_stream_write()` fail when receiving more bytes than expected
 - Make `git_odb_stream_finalize_write()` fail when the number of received bytes differs from what was expected