Fix bugs in powerpc pthread_once.