Add a locked version of CryptAcquireContext

The function is not thread-safe when called with certain flags. This will be
useful when we move keygen onto a worker thread.

BUG=none
TEST=KeygenHandlerTest.SmokeTest (existing)

Review URL: http://codereview.chromium.org/2828019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50661 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/base.gypi b/base/base.gypi
index 53d097e..db55e028 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -358,6 +358,8 @@
       }],
       ['base_extra_target', {
         'sources': [
+          'crypto/capi_util.cc',
+          'crypto/capi_util.h',
           'crypto/cssm_init.cc',
           'crypto/cssm_init.h',
           'crypto/encryptor.h',
@@ -484,6 +486,8 @@
                 'base_drag_source.cc',
                 'base_drop_target.cc',
                 'cpu.cc',
+                'crypto/capi_util.h',
+                'crypto/capi_util.cc',
                 'debug_on_start.cc',
                 'event_recorder.cc',
                 'file_version_info.cc',