tracing/samples: Fix creation and deletion of simple_thread_fn creation