[Acc] [PATCH] uadk: fix lock init failure detection