common: make all calls to pthread_*() uniform

1) Make all calls to pthread_*() uniform:
   - for *_lock() - set errno to the return value and error out,
   - for *_init(), *_destroy() and *_unlock() - do nothing.
2) Change return type of lane_exit() to static void.