Finish writing to an odb stream
The object will take its final name and will be available to the odb.
This method will fail if the total number of received bytes
differs from the size declared with git_odb_open_wstream()
0 on success, an error code otherwise