fixed `thread_lifetime` check