[PATCH 6.4 140/292] tracing/user_events: Fix incorrect return value for writing operation when events are disabled