Function to initialize linthread_db.