Tell AqlTransaction constructor if transaction is main or sub.

Only lock collections in AqlTransactions that are main ones.