Changes to handle multi-user more correctly
This change resolves some issues with multi-user collaboration:
- OnlyOffice will send a status of 1 when a new document is opened, and also when people enter/exit. Changed this to check for the lock and not set a lock if there is already one present.
- Alfresco updates the modification date when locking the node. We rely on this to produce a unique key, as some documents may not be versioned. Disabling behaviour ensures that the modification date is unchanged.
- Changed lock order to unlock the node before updating the content