Why not use a line lock instead of all that?
Jamar Park-Lok hydraulic line lock functions as a parking brake. To engage it, the driver
first steps on his brake pedal and then presses the Park-Lok button. The Jamar line lock
automatically disengages when the brake pedal is depressed again.