Loctite may or may not help you in the instance of a shift rail.
Retaining compound is generally for something that does not have motion between pieces. I'm not saying that it can't help, but I'd look at mechanical means too.
The "split pin" or "roll pin" will flex by very small increments with each strong shift. There is a spring to the fitment of the pin and with a strong shift the pin will shift very slightly and then return to form. THe retaining compound may eventually stop bonding with the bores as the spring pin flexes. The method of retention for these types of fasteners is due to the springy nature of the pin. They are chosen because they are forgiving of differences in bore and shape of the bore. If you were to try to use a solid dowel, you'd need a precision reamed bore and you'd have a very tight press fit.
If you can find them, true "roll pins" will be stronger than simple and more common "split pins" or "spring pins". See the illustration below.
http://www.mcmaster.com/#roll-pins/=10y8md0
The safety wire suggestion is great! Even just a simple loop through the center of the pin and tighly coiled around the fork and rail should do the trick.
good luck!
PM