lzms-common.c, lzms-compress.c: Use pthread_once()