sclang: hidapi - fix gc corruption bug

fwiw, this kind of bugs is *exactly* the reason why i'm strongly against having language plugins without an API which prevents GC corruptions