assert_thread() in maybe_remove()