pthread_once implementation on Linux/SH.