I'm betting that if you scan it, it'll come up as front speed sensor. A similar thing used to happen to me in the rain, TOD would go full lock. It turned out to be a wet connector to the front speed sensor, loacted in the front of the transfer case.
John C.