DD_LIST_FOREACH_SAFE should be used when there is node remove operation from list.