The bolts holding the rear derailleur pulleys are "shoulder bolts" so they stop at the right depth. Tighten them fully. Thread locker is applied by the manufacturer for the initial assembly but I've never needed it when I've removed the pulleys for cleaning and then reinstalled them. Just be sure the bolts are tight.