Blue threadlock will work. And I really also like Jon's 'O' ring suggestion. But unless the threads are getting tired, I'd have to guess that something else is at play here, as in harshness in the cycle due to an issue.....In all my years of shooting many springers I've only experienced one that kept loosening the stock screws in quick order. With many rifles you might have to give them a quick nip following those first shots from new, but I've never had to keep doing it apart from on one gun.

Weirdly, my new Diana AM03 gas ram has never needed anything nipping up.

The rifle that loosened its stock screws was the HW35 that I've worked on recently. Mick, T20, diagnosed it spot-on as detonating. The cycle was quick. Didn't seem particularly harsh, but your trigger finger would take a smack on the odd shot. Now sorted. Much nicer to shoot. Bolts don't come loose.

I suspect breech and / or piston seals or issue with spring force.