threaded readline, pthread_once, pthread_get/setspecific