I'm pretty sure that putting your foot on the brake disengages the rear diff (haldex). I'm welcome to be corrected by those more knowledgeable. Perhaps the brake light switch malfunction is telling the computer that the brakes are on and therefore disengaging the diff?