This is a backport of CMS-10897, combined with the additional improvements from CMS-10970
I'll merge/squash those together in a single commit to make it easier to further backport to 11.2 and 10.2
CMS-10897 Add Lock Service through which you can acquire a (cluster wide) lock (without using JCR)
CMS-10970 Support closing of a LockResource by a different thread
CMS-10974 [Backport 11.2] Add Lock Service through which you can acquire a (cluster wide) lock (without using JCR)
CMS-10987 [Backport 10.2] Add Lock Service through which you can acquire a (cluster wide) lock (without using JCR)
Error rendering 'com.topshelfsolution.simplewiki:related-pages-webpanel'. Please contact your Jira administrators.