Fix server tests broken by D1462817

Summary: When the main thread exits it calls ShutdownModules, which marks the extensions as unsorted.  Any unjoined threads will hit an assert when they exit.  In this case the 'watchdog' thread was joined a step too late in the shutdown process.

Reviewed By: @markw65

Differential Revision: D1562679
Convert some cg functions to SSA.

Summary: These are the easy cases that don't require conditionals
and phi nodes.

Reviewed By: @jasone

Differential Revision: D1556344
run test/tools/update-server-mode-blacklist.sh

Summary: @swtaarrs said this might fix the weird locale race

Reviewed By: @paulbiss, @swtaarrs

Differential Revision: D1564231
Prefix magic attributes with "__"

Summary: See linked task for full description, but here's the gist. In
the absence of real namespacing for user attributes, we should do the
same thing as PHP did for reserved functions: anything prefixed by `__`
might be magical in the runtime (in our case, in the typechecker).
Anything else is up for grabs by users of the language.

In that vein, prefix the handful of unprefixed magic attributes with
`__`. Maintain backwards compatibility support for the old names for a
little while.

Going forward, we should only make magic for user attributes prefixed
with `__`.

Namespacing support for user attributes might be a good idea, at which
point we can redo this, but it's complicated and no one is volunteering
to do it, so here we are.

Reviewed By: @int3

Differential Revision: D1559079