[Acc] [PATCH 19/22] uadk_provider/sm2: Fix the race conditions caused by atomic variables