- if (spent_fct_start == NULL)
- __nss_shadow_nonlocal_lookup(&spent_startp, spent_fct_name,
- &spent_fct_start);
+ if (!spent_initialized) {
+ __nss_shadow_nonlocal_lookup2(&spent_startp, spent_fct_name, NULL,
+ &spent_fct_start);
+ __sync_synchronize();
+ spent_initialized = true;
+ }