Make sure the pthread structures be initialized by PTHREAD_*_INITIALIZER. Also fix one potential race condition issue. Signed-off-by: Zhang Lili <lili.z.zhang@intel.com>
Signed-off-by: Zhang Lili Z <lili.z.zhang@intel.com>