killpg(): more carefully avoid LoR
(cherry picked from commit 7a70f17ac4bd64dc1a5020f963ba4380cf37b7e5)