Adding the mutex model plugin to code tpl

In progress.
How the mutex and _private flag work together have changed, see
server/model/_plugins/mutex.js