tools/mm: fix undefined reference to pthread_once