How to lock a flowservice?

Why do you want to lock the service ?
Are you developing in a shared environment with other developers ?
This hasn’t been recommended in quite a while, especially as you can have everything running locally on your own computer.