Add a block begin callback to distinguish execution runtime: inside/ouside
third native library.