Bug 836654 - Put the expecting-system-message and mozapptype=critical...

attributes on frames, and hold the CPU lock in the phone app.

Combined with the Gecko changes in the bug, this should make is much
less likely to kill processes we actually want to keep around.