lib: Fix linked list rm node itterator

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>