Import db_transaction_generator and db_transaction directly from swh-core.
swh-storage v0.13.3 will stop reexporting it.