Ensure that the all_ids() call does not cause locking issues