Minor chrif.c interface adjustment

Special Thanks to Takkun for pointing it out.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug #7448

Queue Iterators now keep a copy of the queue they'll iterate, so the iterator won't break items are removed or added during iteration.
Special Thanks to Wend~!
http://hercules.ws/board/tracker/issue-7448-queue-memory-leak/

Signed-off-by: shennetsind <ind@henn.et>