Remove extra pthread_mutex_lock/unlock

This fixes an Abort Trap on pool creation seen on OpenBSD.