core/socket: removed socket_event_detach