Circuits for controlling engagement of parking locks or brakes