test for old pthread_once regression with approximate deadlock check