[sc-memory] Fix arcs deletion (prevent arcs list corruption)