Properly disable SWDB in any transactional update mode
In 494a179a92ae5b047b1d641f5b2de5e832c4e792, the SWDB disabler logic
was moved up from before the transactional_update flag was set, which
broke regular transactional updates. To fix this, we will just call
the disabler twice, depending on the condition.