How to acquire a lock on workflow run?

We acquire lock in Jenkins to avoid concurrent execution of jobs. Similarly do we have something in Github actions ?

Note: I am using another action which tells my downstream is success or not. In that case if i use the below code it puts my overall build status as failure since we are cancelling concurrency run.

Is there anyway that i can achieve this through lock mechanism ?

concurrency: 
  group: ${{ github.ref }}
  cancel-in-progress: true