IRL there are 2 levers - in the 1st cabin and in the 2nd (Instructor cabin). The lever in the second cabin is a command lever. If the 2nd lever is down or up the 1st lever will not work. Only if the 2nd lever is neutral the pilot from the 1st cabin can retract or lower the landing gear.
So, if in the Yak-52 module the 2nd lever is neutral and 1st pilot retracts the gear - they must retract. But if in the 2nd cabin the lever is down, the first one must not work - if you move it up the gear shall stay lowered.