tracing/user_events: Fix incorrect return value for writing operation when events...