Fix incorrect initialization of pthread_once variable.

This fixes a startup crash on Mac OS X, and should be safer on other
platforms too.
Merge pull request #697 from kacfengine/pthread_once_fix

Fix incorrect initialization of pthread_once variable.