Adjunto propuesta Class Lock: 

> antes de establece el valor  
```
  /**
   * Get Methodos Class Lock
   * @returns {error}
   * @see Class Lock:
   * https://developers.google.com/apps-script/reference/lock/lock
   */
  const classLock = LockService.getDocumentLock();

  /*  https://developers.google.com/apps-script/reference/lock/lock */
  classLock.waitLock(30000); //  30 seconds
```


> Después de establecer el valor
```
  /*  Releases the lock, allowing other processes waiting on the lock to continue */
  classLock.releaseLock();
```
**Referencias:**   
[Lock Service][1]   
[Class Lock][2]
   


  [1]: https://developers.google.com/apps-script/reference/lock?hl=es-419
  [2]: https://developers.google.com/apps-script/reference/lock/lock?hl=es-419