Hydraulic cylinders don't need them as closing the valves locks the piston in place. A brake would also need to bear against the rod - likely scratching it and causing leaks.
Pneumatic cylinders need them because air is compressible and closing the valves doesn't lock the cylinder in place.
If you need such a thing, use a parallel structure to carry the weight.