atscppapi: fixes for TS-2651: race conditions in destruction of async providers