[#598] Hold mode mutex when setting mode

Commit 745c9be4c9 pushed by ale64bit#603
Workflow vulncheck.yml

Vulncheck

Success

Set up job41s
actions/checkout@v328s
Setup Go1m13s
Install govulncheck24s
Run govulncheck24s
Complete job1m1s