Adding inventory locks to vendingmachine.