Merge "Fix race condition bug related to freezing apps." into cw-f-dev am: 3350ae9c am: 26070158 am: f997be08 Change-Id: I35930617f0aed984ab5ee8286396948d6a9f7831