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.