core: fix a bug in core_fast_queue_iterator

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>