Cope with ThreadRelocated when traversing the blocked_queue