atscppapi: protection against race conditions in destruction of async providers