It should not be necessary if you are tightening the headset lock ring properly. The problem suggests you're doing something wrong. Maybe the steerer is a bit too long for the headset? But a very small amount of blue (lower strength, removable) Locktite won't hurt. A whole bunch of red (high strength, permanent) Locktite would be a bad idea. Other brands of thread locker may use different color codes.