atscppapi: fixing deadlock and shut down race conditions in intercept