lowmemorykiller.c: convert to use for_each_thread

Signed-off-by: Paul Reioux <reioux@gmail.com>

idea is taken here -
https://github.com/faux123/moto_x/commit/eade166226d0e4816721dc89d0fe321ade195886