proc, oom_adj: extract oom_score_adj setting into a helper