GITLAB CICD: How to lock the runner in running job

How can we lock the runner in running job ?