[PATCH v4 1/3] tracing/user_events: Fix incorrect return value for writing operation when events are disabled