[Extensions] Avoid race condition in Extensions registering.

This patch inverts the registration order. Now during the Client's
initialization we synchronously ask the Server for the extensions
to register.
Merge pull request #1012 from jeez/fix-race-register-extensions

[Extensions] Avoid race condition in Extensions registering