[Engine] patch for normal support of pkgmgr signal and thread problem