Serialize objstorage and database writes in content_add
Considering that the objstorage is idempotent, and that there's no rollback feature, intermixing both "transactions" has no concrete benefit. This avoids doing database transactions that are longer than needed.
Test Plan
tox tests are again unchanged
Migrated from D2848 (view on Phabricator)