Don't try to shrink database while in transaction.