Fix untiy life cycle manager when use multithreaded.

fix bug:when use Task,data can't be save.