Parking lock mechanisms or brakes in the transmission