[sc-memory] Fix links deletion (remove backward links in file memory). Fix set content function (remove old content and replace it by new)