The rear wheels aren't affected by putting the truck in 4wheel drive bc they r the main drive tires. It sounds as if an actuator in the T case isn't fully disengaging. Fix it soon or spend lots of $$$ when it breaks, it can damage a lot of parts. It has happened rogue past 2 trucks I have owned, chevy and ford. The chevy happened under a load trying to get a cattle trailer moving, the T case didn't disengage, it popped shuddered and broke. The ford's "shift on the fly" failed to properly engage while slow rolling it and disentegrated the gears. Also on your truck, the front tires are always spinning the axle which is always spinning the drive shaft, the noise comming into play at the 40-50 mph also males me think it the T case bc u r then exceeding it's limits while in 4wheel drive. Replace the actuators, it's easy