From a quick look, with no testing:
In plain Autocad I'd change the (70 . 128) to (70 . 0). The dxf reference for regular Autocad lists 0 as the default value, 1 as the flag bit for a closed lwpolyline, and 128 as the flag bit for Plinegen. Actually I'd probably grab all the lwpolylines into the selection set then delete the ones that have the 1 bit set in dxf code 70. dxf code 70 is bit mapped, so bit 128 could be set whether the pline is open or closed.
The other possible issue is dxf code 8, which sets the layer. As coded the ssget will only include plines on layer 'LNK_SPC_UA'. Is that what you intend?
Martin