add dg_nml_loop tool
add multi thread suport for libdg_dbg
add DG_LOOP_wait_test()
update dg_nml_loop