One bit at a time then. .. I’d have thought you could replace the gas strut. If a dealer doesn’t have them, then you’ll need to fined one at the right pressure, length and with the appropriate thread either end , which may make it difficult.
The strut doesn’t lock out as such though, and will only compress easily, if it’s lost it’s pressure. The cable operated lever at the saddle end could have broken I guess. Have you disassembled it to see if it’s just that lever seized due to trail dirt ?
I have to service mine regularly, as far as I can, but strut is fine, just have issues with worn lower post caused by dirt, water and grit creating wear.
I’d remove the cable and see if the lever is still able to spring , assuming the gas shock doesn’t just compress easily once it’s removed.
My post is about 3 years old and used on rides of anything from 8 to 25 miles off-road at least twice a week. Not the best dropper ever, but it works with regular cleaning and cable changes.