common: make all calls to pthread_*() uniform

The same question as the previous one - this time the case of pthread_mutex_init().