added locking mechanism to voucher queue