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.