Fix HashSetReplaceIterateTempListClear behaviour under concurrent access.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>