Script configure uses yaz pthreads options. Added locking for