mnl - change g_ to m_ for local variable
mnl - thread safe of mtc_xxx