Backport "list: Fix double fetch of pointer in hlist_entry_safe()" bugfix

Signed-off-by: Jonathan Bither <jonbither@gmail.com>