Avoid race condition when iterating over pending resources