iutil.c: simplify queue2plist() implementation.