common: make all calls to pthread_*() uniform

Andy, I'm not sure if I understood you well. Is it correct that checking the return value and logging should be removed for *_unlock() and *_init()?