[sc-memory] Replace uint id's in sc_event by sc_pointer (void*); Fix synchronization of sc_events table
[sc-kpm] Work on issue #146