Fixed second issue reported in

Added synchronization for possible concurrent initialization of mutexes
by multiple threads. The need of synchronization caused by commit r357927
which added the use of mutexes at threads movement to/from common pool
(earlier the mutexes were used only at suspend/resume).

Patch by Johnny Peyton.

Differential Revision:

git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
3 files changed