CURATOR-84 More flexibility for InterProcessMutex extensions

Credit goes to Jozef Vilcek for the initial patch. I just created a PR from the original patch he had created.
This can be private. Is there a reason to make it protected?