Fix debug builds on the mac

Fixes adobe/brackets#3462

For some reason, moving the definition of `gPendingFilesToOpen` from cefclient_mac.mm to appshell_extensions_mac.mm fixes a link error that occurs in debug builds only.

Also, the`REQUIRE_UI_THREAD()` macros in the node process code were throwing exceptions when running debug builds.