atscppapi: fixes for TS-2651: dealing with mutex lock in async timer correctly