withScriptLock HelperStandalone projects and library code don't get a Document Lock. When the critical section is the script project itself — watermark updates…