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.