datastore: fix - mark transactions as finalized.

The recent API refactoring removed the functionality where `save` and `delete` operations mark the transaction as finalized. This brings it back.
I think so. @pcostell, if a transactional commit api call returns an error, can the user make another commit, or is the transaction already dead at that point?