pthread_once in its own file