[sc-memory] Fix bug with arcs deletion