lib: Remove condition regarding a NULL parent_thread_id.