lua: fix possible out-of-bounds read in iwinfo_L_cryptotable()