list: add some iterator debug
Debugging use of unsafe iterators when you should have used the _safe version sucks. Add some DEBUG build support to catch and assert if someone does that.
I didn't update the UPPERCASE verions of the iterators. They should probably be deprecated/removed.
Signed-off-by: Rob Clark robdclark@chromium.org