Merge "Prevent the thread unsafe operation during the user switching" into tm-qpr-dev