Changes to StockLevel to avoid acquiring locks on the same stock twice.