[PATCH 5.17 139/298] tracing: Fix sleeping function called from invalid context on RT kernel