An agricultural system that includes a cylinder (54) and a rod (60) that moves axially in and out of the cylinder to raise and lower a header. A cylinder lock system (28) controls movement of the rod. The cylinder lock system includes a cap-end fixture (50) that couples to the cylinder and receives the rod. A rod-end fixture (52) couples to an end of the rod. The system includes a lock piston (74). The lock piston includes a protrusion (88). The lock piston rotates about the rod and selectively couples the protrusion to the cap-end fixture to lock and unlock the rod-end fixture to the cap-end fixture.