Move NS_GetSpecialDirectory access to main thread