Bug 845357 - Patch to order writes/reads of CCApp state between threads r=jesup,ehugg