[PATCH 6.1 097/223] tracing/user_events: Fix incorrect return value for writing operation when events are disabled