Try this form and see whether it gives the result you expect (you can remove the first item of the tuple if you don't care to check whether it's locked)
q: (if bit 7 of it then "Locked" else "Unlocked|Unknown") of (hexadecimal integer (it as hexadecimal) as bits) of values "type" of structures "system_enclosure_or_chassis" of smbios
A: Unlocked|Unknown
I: plural string
q: (tuple string item ((((it - (128 as bit set)) as integer) of (hexadecimal integer (it as hexadecimal) as bits)) of values "type" of structures "system_enclosure_or_chassis" of smbios) of "Unknown, Other, Unknown, Desktop, Low Profile Desktop, Pizza Box, Mini Tower, Tower, Portable, Laptop, Notebook, Hand Held, Docking Station, All in One, Sub Notebook, Space-Saving, Lunch Box, Main System Chassis, Expansion Chassis, SubChassis, Bus Expansion Chassis, Peripheral Chassis, Storage Chassis, Rack Mount Chassis, Sealed-Case PC, Multi-system chassis, CompactPCI, AdvancedTCA, Blade, Blade Enclosure, Tablet, Convertible, Detachable") | ERROR "Unknown"
A: Notebook
I: singular string
q: ((if bit 7 of it then "Locked" else "Unlocked|Unknown") of (hexadecimal integer (it as hexadecimal) as bits) of values "type" of structures "system_enclosure_or_chassis" of smbios, (tuple string item ((((it - (128 as bit set)) as integer) of (hexadecimal integer (it as hexadecimal) as bits)) of values "type" of structures "system_enclosure_or_chassis" of smbios) of "Unknown, Other, Unknown, Desktop, Low Profile Desktop, Pizza Box, Mini Tower, Tower, Portable, Laptop, Notebook, Hand Held, Docking Station, All in One, Sub Notebook, Space-Saving, Lunch Box, Main System Chassis, Expansion Chassis, SubChassis, Bus Expansion Chassis, Peripheral Chassis, Storage Chassis, Rack Mount Chassis, Sealed-Case PC, Multi-system chassis, CompactPCI, AdvancedTCA, Blade, Blade Enclosure, Tablet, Convertible, Detachable") | ERROR "Unknown")
A: Unlocked|Unknown, Notebook
I: plural ( string, string )