(cache_pwdinit): Use thread attribute to detach thread and no