Update for new db_transaction{,_generator} decorators
Test Plan: make test still works on new swh.storage
Differential Revision: https://forge.softwareheritage.org/D336