There are raised issues around the thread-safety lifetime management of napi_threadsafe_function: nodejs/node#38775.
This is a tracking issue so that we can prioritize the discussion on this in the node-api team meetings. Please comment on their original issues.