imported some major fixes in libhl (lock-free queue)