fix bugs at host_thread; start net controller thread; sharing same variables db_lock...