Bug 828917: move critsect to cover thread existence test (upstream issue 1465) r=derf
Bug 839677 - Remove problematic gsm_msg_queue and use gsm_msgq instead