Revert "lowmemorykiller.c: convert to use for_each_thread"

This reverts commit 89bff6cb92ab293bf4d74e2aa33260edf0a2f897.