CreateContextThread(): Use only one lock/unlock pair
CreateContextThread(): Use only one lock/unlock pair

It is quite often useless to lock a resource, perform calculation,
unlock the resource and then act conditionally upon the result of the
calculation, because as soon as shared resource is unlocked the
condition may change and the previous calculation will become obsolete.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>


git-svn-id: f2d781e409b7e36a714fc884bb9b2fc5091ddd28@6442 0ce88b0d-b2fd-0310-8134-9614164e65ea

vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android