When altering table, we will wait for all previous transaction to be finished.
But because there is no table info in transaction, so we just check the transaction at
database level.
This will cause the loading of table B in a database will block the alter process of table A in
same database.