Support for locking/unlocking web server write access in all codebases + fixes #467